package org.example.pojo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component("lufei")
public class User {

    private String name;
    private String content;
    private int age;
    public User() {
    }

    public User(String name, String content) {
        this.name = name;
        this.content = content;
    }

    public User(String name, String content, int age) {
        this.name = name;
        this.content = content;
        this.age = age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
